package com.hqd.ch03.v38.web.multipart;

import javax.servlet.http.HttpServletRequest;

/**
 * 文件上传处理接口
 */
public interface MultipartResolver {
    /**
     * 是否是文件上传请求
     *
     * @param request
     * @return
     */
    boolean isMultipart(HttpServletRequest request);

    /**
     * 提供对应处理类
     *
     * @param request
     * @return
     */
    MultipartHttpServletRequest resolveMultipart(HttpServletRequest request);

    /**
     * 清除信息
     *
     * @param request
     */
    void cleanupMultipart(MultipartHttpServletRequest request);

}
